package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.trade.confirmfee.get Request
	 * @author fxy
	 *
	 */
	public class TradeConfirmFeeGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.trade.confirmfee.get"
		}
		/**
		 * Y 	 交易id，或子订单id
		 */
		[Bindable]
		public var tid:String;
		/**
		 * Y 	是否是子订单。可选值:IS_FATHER(父订单),IS_CHILD(子订单)
		 */
		[Bindable]
		public var is_detail:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([tid, is_detail]))
			{
				throw new InvalidRequestParametersException("请求参数[tid,is_detail]不能为空");
			}
		}
	}
}